//
//  DetailspageViewModel.m
//  FiltrationSystem
//
//  Created by 123456 on 2017/8/9.
//  Copyright © 2017年 YTYangK. All rights reserved.
//

#import "DetailspageViewModel.h"

@implementation DetailspageViewModel




+(void)requestWithUrlForDetailsIn:(id)obj andParam:(NSDictionary *)param success:(void(^)(NSDictionary *model))success failure:(void(^)(NSString *error))failure{

    MDC_INTER_DIC(@"app/findDeviceByImei.do", @"NetMethodPOST", @"false")
    
    [super initRequestWithUrlObj:obj parametersDic:param Interface:inter success:^(id obj, id model) {
        
        
        
        if ([model[@"status"]integerValue]== 1) {
            
            
            success(model[@"data"]);
            
        }else{
            
            failure(model[@"masg"]);
            
        }
    } failure:^(id obj, NSString *err) {
        failure(err); //返回是因为需要列表拉下来
    }];


}


+(void)requestWithUrlForPasswordIn:(id)obj andParam:(NSDictionary *)param success:(void(^)(NSDictionary *model))success failure:(void(^)(NSString *error))failure{

    
    MDC_INTER_DIC(@"app/deviceSetActivityLiftNull.do", @"NetMethodPOST", @"false")
    
    [super initRequestWithUrlObj:obj parametersDic:param Interface:inter success:^(id obj, id model) {
        
            
            success(model);
            
     
    } failure:^(id obj, NSString *err) {
        failure(err); //返回是因为需要列表拉下来
    }];


}


@end
